package com.csun.cmny.provider.model.vo.csunsleep;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DmcCsunSleepVo{
    private static final long serialVersionUID = -1513173643999418161L;

    /**
     * 设备绑定类型 0-自定义 1-老人 2-床位
     */
    private Integer bindType;

    /**
     * 设备绑定位置
     */
    private String location;

    /**
     * 老人Id
     */
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    private String oldmanName;

    /**
     * 床位Id
     */
    private Integer bedId;

    /**
     * 是否绑定 true - 绑定 false - 未绑定
     */
    private boolean bind = false;

    /**
     * 房间Id
     */
    private Integer roomId;

    /**
     * 楼栋名
     */
    private String buildingName;

    /**
     * 楼层号
     */
    private Integer floorNo;

    /**
     * 房间编号
     */
    private String roomNo;

    private Integer actionDuration;
    @ApiModelProperty(value = "设备编码")
    private String deviceNo;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备类型")
    private Integer deviceType;

    @ApiModelProperty(value = "设备版本")
    private String deviceVersion;

    @ApiModelProperty(value = "设备类型编码")
    private String typeCode;

    @ApiModelProperty(value = "设备类型名称")
    private String typeName;

    @ApiModelProperty(value = "设备描述信息")
    private String remark;

    @ApiModelProperty(value = "组织Id")
    private Long groupId;

    private String status;

    private Long id;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建人ID
     */
    private Long creatorId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 最近操作人
     */
    private String lastOperator;

    /**
     * 最后操作人ID
     */
    private Long lastOperatorId;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
